if (self.CavalryLogger) { CavalryLogger.start_js(["KQ+lo"]); } /** * License: https://www.facebook.com/legal/license/HAC-_9WTKIm/ */ __d("flatbuffers",[],(function(a,b,c,d,e,f){__p&&__p();var g={};g.Offset;g.Table;g.SIZEOF_SHORT=2;g.SIZEOF_INT=4;g.FILE_IDENTIFIER_LENGTH=4;g.Encoding={UTF8_BYTES:1,UTF16_STRING:2};g.int32=new Int32Array(2);g.float32=new Float32Array(g.int32.buffer);g.float64=new Float64Array(g.int32.buffer);g.isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;g.Long=function(a,b){this.low=a|0,this.high=b|0};g.Long.create=function(a,b){return a==0&&b==0?g.Long.ZERO:new g.Long(a,b)};g.Long.prototype.toFloat64=function(){return(this.low>>>0)+this.high*4294967296};g.Long.prototype.equals=function(a){return this.low==a.low&&this.high==a.high};g.Long.ZERO=new g.Long(0,0);g.Builder=function(a){__p&&__p();if(!a)var b=1024;else var b=a;this.bb=g.ByteBuffer.allocate(b);this.space=b;this.minalign=1;this.vtable=null;this.vtable_in_use=0;this.isNested=!1;this.object_start=0;this.vtables=[];this.vector_num_elems=0;this.force_defaults=!1};g.Builder.prototype.forceDefaults=function(a){this.force_defaults=a};g.Builder.prototype.dataBuffer=function(){return this.bb};g.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())};g.Builder.prototype.prep=function(a,b){a>this.minalign&&(this.minalign=a);var c=~(this.bb.capacity()-this.space+b)+1&a-1;while(this.space=0;b--)this.addInt16(this.vtable[b]!=0?a-this.vtable[b]:0);var c=2;this.addInt16(a-this.object_start);this.addInt16((this.vtable_in_use+c)*g.SIZEOF_SHORT);c=0;outer_loop:for(var b=0;b=0;c--)this.writeInt8(b.charCodeAt(c))}this.prep(this.minalign,g.SIZEOF_INT);this.addOffset(a);this.bb.setPosition(this.space)};g.Builder.prototype.requiredField=function(a,b){a=this.bb.capacity()-a;a=a-this.bb.readInt32(a);a=this.bb.readInt16(a+b)!=0;if(!a)throw new Error("FlatBuffers: field "+b+" must be set")};g.Builder.prototype.startVector=function(a,b,c){this.notNested(),this.vector_num_elems=b,this.prep(g.SIZEOF_INT,a*b),this.prep(c,a*b)};g.Builder.prototype.endVector=function(){this.writeInt32(this.vector_num_elems);return this.offset()};g.Builder.prototype.createString=function(a){__p&&__p();if(a instanceof Uint8Array)var b=a;else{var b=[],c=0;while(c=56320)d=e;else{var f=a.charCodeAt(c++);d=(e<<10)+f+(65536-(55296<<10)-56320)}d<128?b.push(d):(d<2048?b.push(d>>6&31|192):(d<65536?b.push(d>>12&15|224):b.push(d>>18&7|240,d>>12&63|128),b.push(d>>6&63|128)),b.push(d&63|128))}}this.addInt8(0);this.startVector(1,b.length,1);this.bb.setPosition(this.space-=b.length);for(var c=0,e=this.space,f=this.bb.bytes();c>24};g.ByteBuffer.prototype.readUint8=function(a){return this.bytes_[a]};g.ByteBuffer.prototype.readInt16=function(a){return this.readUint16(a)<<16>>16};g.ByteBuffer.prototype.readUint16=function(a){return this.bytes_[a]|this.bytes_[a+1]<<8};g.ByteBuffer.prototype.readInt32=function(a){return this.bytes_[a]|this.bytes_[a+1]<<8|this.bytes_[a+2]<<16|this.bytes_[a+3]<<24};g.ByteBuffer.prototype.readUint32=function(a){return this.readInt32(a)>>>0};g.ByteBuffer.prototype.readInt64=function(a){return new g.Long(this.readInt32(a),this.readInt32(a+4))};g.ByteBuffer.prototype.readUint64=function(a){return new g.Long(this.readUint32(a),this.readUint32(a+4))};g.ByteBuffer.prototype.readFloat32=function(a){g.int32[0]=this.readInt32(a);return g.float32[0]};g.ByteBuffer.prototype.readFloat64=function(a){g.int32[g.isLittleEndian?0:1]=this.readInt32(a);g.int32[g.isLittleEndian?1:0]=this.readInt32(a+4);return g.float64[0]};g.ByteBuffer.prototype.writeInt8=function(a,b){this.bytes_[a]=b};g.ByteBuffer.prototype.writeUint8=function(a,b){this.bytes_[a]=b};g.ByteBuffer.prototype.writeInt16=function(a,b){this.bytes_[a]=b,this.bytes_[a+1]=b>>8};g.ByteBuffer.prototype.writeUint16=function(a,b){this.bytes_[a]=b,this.bytes_[a+1]=b>>8};g.ByteBuffer.prototype.writeInt32=function(a,b){this.bytes_[a]=b,this.bytes_[a+1]=b>>8,this.bytes_[a+2]=b>>16,this.bytes_[a+3]=b>>24};g.ByteBuffer.prototype.writeUint32=function(a,b){this.bytes_[a]=b,this.bytes_[a+1]=b>>8,this.bytes_[a+2]=b>>16,this.bytes_[a+3]=b>>24};g.ByteBuffer.prototype.writeInt64=function(a,b){this.writeInt32(a,b.low),this.writeInt32(a+4,b.high)};g.ByteBuffer.prototype.writeUint64=function(a,b){this.writeUint32(a,b.low),this.writeUint32(a+4,b.high)};g.ByteBuffer.prototype.writeFloat32=function(a,b){g.float32[0]=b,this.writeInt32(a,g.int32[0])};g.ByteBuffer.prototype.writeFloat64=function(a,b){g.float64[0]=b,this.writeInt32(a,g.int32[g.isLittleEndian?0:1]),this.writeInt32(a+4,g.int32[g.isLittleEndian?1:0])};g.ByteBuffer.prototype.__offset=function(a,b){a=a-this.readInt32(a);return b>10)+55296,(f&(1<<10)-1)+56320))}return d};g.ByteBuffer.prototype.__indirect=function(a){return a+this.readInt32(a)};g.ByteBuffer.prototype.__vector=function(a){return a+this.readInt32(a)+g.SIZEOF_INT};g.ByteBuffer.prototype.__vector_len=function(a){return this.readInt32(a+this.readInt32(a))};g.ByteBuffer.prototype.__has_identifier=function(a){if(a.length!=g.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+g.FILE_IDENTIFIER_LENGTH);for(var b=0;b